package com.myblog.mapper;

import com.myblog.model.FeedBack;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FeedBackMapper {
    //获取所有反馈信息
    @Select("select * from feedback")
    List<FeedBack> selectAllFeedBack();

    @Insert("insert into feedback (feedbackContent,contactInfo,personId,feedbackDate) " +
            "values (#{feedbackContent},#{contactInfo},#{personId},#{feedbackDate})")
    void addFeedBack(FeedBack feedBack);
}
